#ifndef VD_NET_DEF_H_INCLUDED
#define VD_NET_DEF_H_INCLUDED

typedef void (*vd_net_data_proc_func) (char *buff, int size);

typedef struct vd_server_socket
{
  struct socket *sock;
  struct sockaddr_in addr;

  char *buff;
  int buff_size;

  struct task_struct *ts;

  vd_net_data_proc_func proc_func;

} vd_ssocket;

typedef struct vd_client_socket
{
  struct socket *sock;
  struct sockaddr_in addr;

  char *buff;
  int buff_size;
} vd_csocket;

#endif // VD_NET_DEF_H_INCLUDED
